<?php

namespace app\web\command;

use app\common\util\Tools;
use think\console\Input;
use think\console\Output;
use think\facade\Log;

class AttachTest extends CommonTest
{

    //再命令窗口中执行“php think interface-AttachTest”
    protected function configure()
    {
        $this->setName('interface-AttachTest')
            ->setDescription('接口测试');
    }

    public function execute(Input $input, Output $output)
    {
        parent::execute($input, $output);

        //Route::any('web/passport/getProtocol', 'web/attach/getProtocol');                                                       //用户协议
//        $data = Tools::curl($this->url . "web/passport/getProtocol", '');
//        Log::write("post". var_export($data,true));
//        echo $data . "\n\n";

        //Route::any('web/attach/getIndustry', 'web/attach/getIndustryInfo');                                                     // 行业数组
//        $data = Tools::curl($this->url . "web/attach/getIndustry", '');
//        Log::write("post". var_export($data,true));
//        echo print_r(json_decode($data,1)) . "\n\n";
//        echo $data . "\n\n";
    }
}
